package com.loveyukari.dao;

import com.loveyukari.model.YubaPost;
import com.loveyukari.model.YubaPostComment;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface YubaPostDao {

    YubaPost selectPostById(String postId);


    List<YubaPostComment> selectAllCommentByPostId(String postId);
    YubaPostComment selectCommentByCommentId(String commentId);


    void insertPost(YubaPost post);
    void insertPostcomment(YubaPostComment postComment);

    void updatePostLike(Map<String,Integer> postIdLikeMap);
    void updatePostComments(Map<String,Integer> postIdCommentsMap);
    void updatePostCreateTime(Map<String,Date> postIdCreateTimeMap);

    void updatePostCommentReplys(Map<String,Integer> commentIdReplysMap);
    void updatePostCommentLike(Map<String,Integer> commentIdLikeMap);
    void updatePostCommentStatusByPostFloor(Map<String,List<Integer>> postFloorsMap,int status);



}
